package com.mida.bms.report.service;

import com.mida.bms.report.entity.DocStructTemplateAuth;
import com.mida.bms.report.entity.DocStructTemplateAuthSpace;
import com.mida.bms.report.vo.DocStructTemplateAuthBatchVo;
import com.mida.bms.report.vo.DocStructTemplateAuthSpaceVo;
import com.mida.bms.report.vo.PageResultVo;
import com.mida.tool.common.result.ActionResult;
import com.mida.tool.common.result.ListResult;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface DocStructTemplateAuthSpaceService {

    ActionResult add(DocStructTemplateAuthSpaceVo docStructTemplateAuthSpaceVo) throws Exception;

    ActionResult update(DocStructTemplateAuthSpaceVo docStructTemplateAuthSpaceVo) throws Exception;

    ActionResult delete(long stTempAuthSpSoid);

    ListResult<DocStructTemplateAuthSpaceVo> get(long stTempAuthSpSoid);

    ListResult<PageResultVo<DocStructTemplateAuthSpaceVo>> findPage(String searChData, Long currentPage, Long pageSize);

    ActionResult checkName(String name, Long stTempAuthSpSoid);

    ActionResult updateStatus(Long status, Long stTempAuthSpSoid);

    ListResult<List<DocStructTemplateAuthSpace>> findAll(String searChData,Long hospitalSoid);

    ListResult<DocStructTemplateAuthSpaceVo> selectByAuthSpSoid(long stTempAuthSpSoid);

    /**
     * 批量插入模板授权空间业务处理
     * @param listDocStructTemplateAuth
     * @return
     * @throws Exception
     */
    ActionResult addDocStructTemplateAuthBatch(List<DocStructTemplateAuth> listDocStructTemplateAuth) throws Exception;
}
